import http from "../utils/request"

// 获取vip产品
export let get_productApi = (category_id) => http.get("category_id?category_id="+category_id)

// 下单
export let pre_orderApi = (product_id,) => http.post("/order/pre_order",{
    product_id,
    quantity
})

// 发起支付
export let paymentApi = (order_id) => http.post("/pay/payment",{
    order_id
})

// 查询支付结果
export let query_order_statusApi = (order_id) => http.get("/order/query_order_status?order_id="+order_id)